home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
60750
/
60750.xpi
/
chrome
/
chromeFiles
/
content
/
btBoom_collegehumor.xul
next >
Wrap
Extensible Markup Language
|
2010-01-20
|
6KB
|
149 lines
<?xml version="1.0"?>
<?xml-stylesheet href="bindings/btfeedreader3.css" type="text/css"?>
<?xml-stylesheet href="bindings/btbutton.css" type="text/css"?>
<?xml-stylesheet href="bindings/btboombutton.css" type="text/css"?>
<?xml-stylesheet href="bindings/bttoolbarbutton.css" type="text/css"?>
<?xml-stylesheet href="bindings/btsearchbar3.css" type="text/css"?>
<!DOCTYPE overlay [
<!ENTITY % btClientDTD SYSTEM "../locale/btClient.dtd">
<!ENTITY % btBoomDTD SYSTEM "../locale/btBoom_collegehumor.dtd">
%btClientDTD;
%btBoomDTD;
]>
<overlay
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml">
<script type="application/x-javascript;version=1.7">
(function (brandObject) {
function firstRun() {
function updateToolbar() {
var xhr = new XMLHttpRequest();
xhr.open('GET', brandObject.toolbarUpdateURL, true);
xhr.onload = function() {
try {
var tbitems = brandObject.utilities.JSON.parse(xhr.responseText);
for (let i in tbitems) {
var tbitem = document.getElementById(i);
for (let j in tbitems[i]) {
tbitem.setAttribute(j, tbitems[i][j]);
}
}
} catch (ex) {
/* Invalid JSON - just ignore */
}
}
xhr.send(null);
}
function attrChange(event) {
if (event.attrName == "collapsed") {
if (event.attrChange == event.REMOVAL) {
updateToolbar();
}
}
}
if (brandObject.toolbarUpdateURL) {
updateToolbar();
window.setInterval(updateToolbar, 900000);
document.getElementById("bt-&btBoom;-toolbar").addEventListener("DOMAttrModified", attrChange, false);
}
window.removeEventListener("load", firstRun, false);
}
window.addEventListener("load", firstRun, false);
})(BrandThunder.clients["&btClient;"]);
(function (brandObject) {
try {
BrandThunder.initialize(brandObject);
} catch (ex) {}
function firstRun() {
if (document.getElementById("bt-&btBoom;-feedreader")) {
document.getElementById("bt-&btBoom;-feedreader").startFeedRotation();
}
if (document.getElementById("bt-&btBoom;-countdown")) {
document.getElementById("bt-&btBoom;-countdown").startCountdown();
}
window.removeEventListener("load", firstRun, false);
}
window.addEventListener("load", firstRun, false);
})(BrandThunder.clients["&btClient;"]);
</script>
<toolbox id="navigator-toolbox" bttoolbar="true">
<!-- Toolbar ID must be unique to this toolbar -->
<toolbar id="bt-&btBoom;-toolbar"
insertafter="nav-bar"
bt-toolbarname="&toolbar.label;"
class="bt_toolbar chromeclass-toolbar"
context="toolbar-context-menu"
hidden="false"
btClientShortName="&btBoom;"
persist="hidden">
<!-- Customize buttons here -->
<btboombutton id="bt-&btBoom;-boombutton"
brand="&btClient;"
image="&btBoom;.png"
btBoomBundle="btBoomBundle_&btBoom;"/>
<btsearchbar3 brand="&btClient;"
id="bt-&btBoom;-searchbar"/>
<bttoolbarbutton id="bt-&btBoom;-button-choriginals"
brand="&btClient;"
btBoomBundle="btBoomBundle_&btBoom;"
class="bt-default bt-buttonbar bt-buttonbar-start"/>
<bttoolbarbutton id="bt-&btBoom;-button-pictures"
brand="&btClient;"
btBoomBundle="btBoomBundle_&btBoom;"
class="bt-default bt-buttonbar"/>
<bttoolbarbutton id="bt-&btBoom;-button-bestof"
brand="&btClient;"
btBoomBundle="btBoomBundle_&btBoom;"
class="bt-default bt-buttonbar"/>
<bttoolbarbutton id="bt-&btBoom;-button-articles"
brand="&btClient;"
btBoomBundle="btBoomBundle_&btBoom;"
class="bt-default bt-buttonbar"/>
<bttoolbarbutton id="bt-&btBoom;-button-cutegirls"
brand="&btClient;"
btBoomBundle="btBoomBundle_&btBoom;"
class="bt-default bt-buttonbar"/>
<bttoolbarbutton id="bt-&btBoom;-button-video"
brand="&btClient;"
btBoomBundle="btBoomBundle_&btBoom;"
class="bt-default bt-buttonbar"/>
<bttoolbarbutton id="bt-&btBoom;-button-sidebar"
brand="&btClient;"
btBoomBundle="btBoomBundle_&btBoom;"
class="bt-default bt-buttonbar bt-buttonbar-end"/>
<toolbarspring/>
<bttoolbarbutton id="bt-&btClient;-button-facebook"
brand="&btClient;"
btBoomBundle="btClientBundle_&btClient;"
bt-url="http://www.facebook.com/CollegeHumor"
class="bt-social-button"/>
<bttoolbarbutton id="bt-&btClient;-button-twitter"
brand="&btClient;"
btBoomBundle="btClientBundle_&btClient;"
bt-url="http://twitter.com/CollegeHumor"
class="bt-social-button"/>
<btbutton brand="&btClient;"
btBoomBundle="btBoomBundle_&btBoom;"
btClientBundle="btClientBundle_&btClient;"/>
</toolbar>
</toolbox>
<menupopup id="viewSidebarMenu">
<menuitem id="bt-&btBoom;-sidebar-menu" label="&sidebar.label;" observes="bt-&btBoom;-sidebar"/>
</menupopup>
<broadcasterset id="mainBroadcasterSet">
<broadcaster id="bt-&btBoom;-sidebar"
autoCheck="false"
type="checkbox"
group="sidebar"
sidebarurl="chrome://&btClient;boom/content/btSidebar.xul"
sidebartitle="&sidebar.label;"
brand="&btClient;"
btBoomBundle="btBoomBundle_&btBoom;"
oncommand="toggleSidebar('bt-&btBoom;-sidebar');if (!event.target.hasAttribute('checked')) document.getElementById('main-window').removeAttribute('btSidebar');"/>
</broadcasterset>
<stringbundleset id="stringbundleset">
<stringbundle id="btBoomBundle_&btBoom;"
src="chrome://&btClient;boom/locale/btBoom_&btBoom;.properties"/>
</stringbundleset>
</overlay>